import { request, upload } from "@/utils/request";

// 获取图书列表
export const GetBookListAPI = () => request.get('/api/user/BookControllerAdmin')

// 上传图片封面
export const GetUploadAPI = (file) => upload('/api/FileUploadController', file)

// 修改图书信息
export const GetEditBookAPI = (data) => request.post('/api/user/EditBookController', data)

// 删除图书信息r
export const GetDeleteBookAPI = (id, stauts) => request.get(`/api/user/DeleteBookController?id=${id}&status=${stauts}`)

// 删除图书信息r
export const GetToDeleteBookAPI = (id, stauts) => request.get(`/api/user/DeleteBookController?id=${id}&status=${stauts}`)

// 添加图书信息
export const GetAddBookAPI = (data) => request.post('/api/user/AddBookController', data)
